package com.gsit.omega.ea.web;

import java.util.Collection;

import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gsit.omega.ea.domain.MileStoneRelease;
import com.gsit.omega.ea.utils.TaskStatus;

@RooWebScaffold(path = "milestonereleases", formBackingObject = MileStoneRelease.class)
@RequestMapping("/milestonereleases")
@Controller
public class MileStoneReleaseController {

    @ModelAttribute("tasks")
    public Collection<com.gsit.omega.ea.domain.Task> populateTasks() {
        return taskService.findAllTasksByTaskStatus(TaskStatus.ASSIGN);
    }
}
